"""自定义一个用户装饰器
"""

def my_decorator(func):
    def wrapper(request,*args,**kwargs):
        print("这是一个装饰器")
        return func(request,*args,**kwargs)
    return wrapper


class MydecoratorMixin(object):
    @classmethod
    def as_view(cls,*args,**kwargs):
        view = super().as_view(*args,**kwargs)#多重继承C3算法
        view = my_decorator(view)
        return view
